package com.xhapi.mapper.neoMapper;

import com.xhapi.pojo.neo4j.entity.Point;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface PointMapper extends Neo4jRepository<Point,Long> {
    @Query("MATCH (n:`知识点`) where n.name=$name set n.value=n.value+1")
    void updateValueByName(String name);

}
